import React, { useEffect } from 'react';
import ReactQuill from 'react-quill';
import 'react-quill/dist/quill.snow.css';
import { editTitleConfig, modules } from './titleConfig';
import { antiShake } from '../index';
function App(props) {
  useEffect(editTitleConfig, []);
  return (
    <ReactQuill
      theme="snow"
      value={props.value}
      onChange={(v) => antiShake(() => props.setValue(v))}
      modules={modules}
      style={{
        width: '100%',
        height: '100%',
      }}
    />
  );
}
export default App;
